
package stack;

import exceptions.EmptyStackException;

/**
 *
 * @author pc
 */
public interface Stack <E> {
    
    public int size();
    public boolean isEmpty();
    public E top() throws EmptyStackException;
    public void push(E o);
    public E pop() throws EmptyStackException;
    
}
